MultiSafepay\WooCommerce\PaymentMethods\Base\BasePaymentMethod C

Total Complexity 104
Dependencies 10
Dependents 3
Total lines 778
Lines of code 458
Logical lines of code 179
Comment lines 155
Methods 30
Properties 9

Methods 30

Method Rating Maintainability Complexity Lines of code
enqueue_multisafepay_scripts_by_gateway_code()
B
43 19 41
add_form_fields()
B
31 11 134
validate_fields()
A
52 10 23
admin_editing_checkout_page()
S
61 7 10
get_payment_method_type()
S
61 6 15
__construct()
S
45 3 41
common_wallets_data()
S
55 4 19
build_googlepay_wallet_variables()
S
53 3 24
process_payment()
S
53 3 21
build_applepay_wallet_variables()
S
55 3 19
get_google_apple_pay_use_button()
S
66 4 7
enqueue_payment_component_scripts()
S
60 3 12
enqueue_payment_component_styles()
S
64 3 11
can_refund_order()
S
70 3 6
is_payment_component_enabled()
S
63 3 10
is_tokenization_enabled()
S
67 2 7
has_fields()
S
72 2 6
check_direct_payment_methods_without_components()
S
68 2 8
is_payment_method_type_direct()
S
75 2 4
get_payment_method_id()
S
80 1 3
is_woocommerce_checkout_block_active()
S
79 1 3
get_logo()
S
81 1 3
get_payment_method_icon()
S
81 1 3
payment_fields()
S
80 1 3
get_payment_method_description()
S
70 1 7
get_payment_method_title()
S
81 1 3
get_order_statuses()
S
72 1 5
get_defined_direct_payment_methods_without_components()
S
79 1 3
get_payment_method_gateway_code()
S
81 1 3
get_countries()
S
76 1 4